package iO;

import java.io.*;

/**
 * @Author: Miyako
 * @Date: 2024-07-16-16:41
 * @Description: 读取并反序列化
 */
public class ObjectInputStreamDemo01 {
    public static void main(String[] args) throws IOException, ClassNotFoundException {
        ObjectInputStream oI= new ObjectInputStream(new FileInputStream("Message.txt"));
        File file = new File("Message.txt");
       Message mm =(Message) oI.readObject();
        System.out.println(mm);
    }
}
